Release 10.1A: OpenEdge Development:
Programming Interfaces


Validation

You can validate XML against a DTD or an XML Schema file. The DOM parser will always validate against an internal DTD or DTD reference. In addition, the SCHEMA-PATH attribute of the X-document allows you to point to another DTD for validation.

If you would like to validate against one or more XML Schema files, you can specify the location of these in the SCHEMA-LOCATION attribute or the NONAMESPACE-SCHEMA LOCATION attribute.

Table 19–3: X-document support for XML Schema validation
X-document attribute or method
Description
SCHEMA-LOCATION attribute 
Determines the list of namespace/location pairs of an XML Schema file to validate against.
NONAMESPACE-SCHEMA-LOCATION 
attribute 
Determines the location the XML Schema file to validate against when elements do not contain a namespace.
ADD-SCHEMA-LOCATION() method 

An XML Schema file location is specified by providing a pair of values: a namespace and a physical location. This method allows you to specify that value pair and add it to the list of pairs stored in the SCHEMA-LOCATION attribute. The XML Schema files listed in this attribute are used by an X-document to validate XML content.

For more information, see the reference entries for these methods and attributes in the OpenEdge Development: Progress 4GL Reference .


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095